<?php
namespace Mouta\UserBundle\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\Validator\Constraints\Email;
use Symfony\Component\Validator\Constraints\Length;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\Constraints\Collection;
use Mouta\UserBundle\Form\DataTransformer\EntityToIntTransformer;

class MessageType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('mensaje', 'textarea', array(
                'attr' => array(
                    'cols' => 90,
                    'rows' => 10,
                    'placeholder' => 'Mensaje'
                )
            ))
            ->add('captcha', 'genemu_captcha',array(
                'mapped' => false,
                'attr' => array(
                    'style' => 'width: 200px;',
                    'placeholder' => 'Captcha'
                ),
                'width'=>200,
                'height'=>50,
                'font_size'=>22,
                'length'=>4,
                'border_color'=>"cccccc"
            ));

		
    }
	
    public function getName()
    {
        return 'message';
    }


}